{template 'header'}
<div class='container' style='padding: 0 5px 10px; margin: 0; width: 100%'>
	<ul class="nav nav-tabs">
		<li><a href="{php echo $this->createWebUrl('listuser');}">用户列表</a></li>

		{if $_GPC['op']=='add'}<li class="active"><a href="{php echo $this->createWebUrl('listuser_add',array('op'=>'add'));}">添加用户</a></li>{/if}
		{if $_GPC['op']=='edit'}<li class="active"><a href="{php echo $this->createWebUrl('listuser_add',array('id'=>$_GPC['id'],'op'=>'edit'));}">编辑用户</a></li>{/if}
	</ul>




	<div class="main">
	<form class="form-horizontal form" action="" method="post" enctype="multipart/form-data" onsubmit="return validate(this);">
    	<div class="panel panel-default">
            <div class="panel-heading">
                请认真填写相关信息
            </div>
            <div class="panel-body">

        <div class="form-group" >
                    <label class="col-xs-1 col-sm-1 col-md-2 control-label">排序</label>
                    <div class="col-sm-1 col-xs-12">
                        <input type="text" name="displayorder" class="form-control" value="{if empty($set['displayorder'])}0{else}{$set['displayorder']}{/if}"/>
                        <span class="help-block"></span></div>
       

        
                    
        </div>

		<div class="form-group" >
                    <label class="col-xs-1 col-sm-1 col-md-2 control-label">用户OpenID</label>
                    <div class="col-sm-4 col-xs-12">
                        <input type="text" name="openid" class="form-control" value="{$set['openid']}"/>
                        <span class="help-block"></span></div>
        </div>

		

        <div class="form-group" >
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">用户状态</label>
                    <div class="col-sm-2 col-xs-12">
                <select class="form-control tpl-category-parent" name="status">
					<option value="1" {if $set['status']=='1' || empty($set['status'])}selected{/if}>开启</option>
					<option value="0" {if $set['status']=='0'}selected{/if}>关闭</option>
					
				</select></div>
        </div>

		
		

		<div class="form-group" >
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">昵称</label>
                    <div class="col-sm-2 col-xs-12">
					    {if empty($set['nickname'])}{php $set['nickname']=$nickname;}{/if}
                        <input type="text" name="nickname" class="form-control" value="{$set['nickname']}"/>
                        <span class="help-block"></span> </div>
        </div>

		<div class="form-group" >
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">上级UID</label>
                    <div class="col-sm-2 col-xs-12">
                        <input type="text" name="helpid" class="form-control" value="{$set['helpid']}"/>
                        <span class="help-block"></span> </div>
        </div>

		<div class="form-group" >
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">用户头像</label>
                    <div class="col-sm-3 col-xs-12">
					    {if empty($set['avatar'])}{php $set['avatar']=$avatar;}{/if}
                        {php echo tpl_form_field_image('avatar', $set['avatar']);}
                        <span class="help-block"></span> </div>
        </div>



		


		<div class="form-group" >
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">新建建立时间</label>
                    <div class="col-sm-2 col-xs-12">
                        {php echo tpl_form_field_date('ctime', $set['ctime'], true);}
                        <span class="help-block"></span>
                    </div>
         </div>

		<div class="form-group" >
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">最后访问时间</label>
                    <div class="col-sm-2 col-xs-12">
					    {php echo tpl_form_field_date('vtime', $set['vtime'], true);}
                        <span class="help-block"></span>
                    </div>
        </div>

		


		

		


         </div>
				
            </div>
        </div>



        <div class="form-group col-sm-12">
		<br>
			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
			<input type="hidden" name="token" value="{$_W['token']}" />
		</div>
   </form>
</div>

</div>
　
{template 'footer'}